package com.easy.project.domain.dto.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wxz
 */
@Data
@ApiModel("RoleMenuDTO")
public class RoleMenuDTO {

    @ApiModelProperty("角色id")
    @NotNull(message = "角色id不可以为空")
    private Long roleId;

    @ApiModelProperty("菜单id集合")
    @NotEmpty(message = "菜单id集合不可以为空")
    private List<Long> menuIdList;

}
